<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$('#yxsj_add_dept').combotree({
			lines : true,
			url : 'deptAction!do_combotree.action',
			panelHeight : 260,
			required : true,
			editable : false,
			idField : 'id',
			textField : 'text',
			parentField : 'pid',
			onBeforeSelect : function(node) {
				if (!$(this).tree('isLeaf', node.target)) {
					return false;
				}
			},
			onClick : function(node) {
				if (!$(this).tree('isLeaf', node.target)) {
					$('#yxsj_add_dept').combo('showPanel');
				}
			},
			onSelect:function(node){
				$('#yxsj_add_userbh').combobox('clear');
				$('#yxsj_add_userbh').combobox('reload','userAction!do_combobox.action?deptid='+node.id);
			}
		});
		$('#yxsj_add_userbh').combobox({
			 url:'userAction!do_combobox.action',
			 required:true,
			 valueField:'cbh',
			 textField:'cname'
		 });
	});
</script>
<div align="center" style="padding:5px">
	<form method="post" id="yxsj_add_form">
		<input type="hidden" name="createuserid" value="${sessionInfo.userId}" />
		<table class="t2">
			<tr>
				<th width="80" >所属单位：</th>
				<td width="250"><input type="text" id="yxsj_add_dept" name="deptid" style="width:240px" /></td>
			</tr>
			<tr>
				<th>员工姓名：</th>
				<td><input type="text" id="yxsj_add_userbh" name="cbh"  style="width:240px" /></td>
			</tr>
			<tr>
				<th>业务种类：</th>
				<td><input type="text" class="easyui-combobox" name="kindid" data-options="url:'kindAction!do_combobox.action',panelHeight:'auto',required:true,valueField:'cid',textField:'cname'" style="width:240px" /></td>
			</tr>
			<tr>
				<th>月份：</th>
				<td>
					<input class="easyui-my97" type="text" name="csbyf"  data-options="dateFmt:'yyyyMM'" style="width:240px"/>
				</td>
			</tr>
			<tr>
				<th>账号：</th>
				<td><input type="text" name="czh" class="easyui-validatebox" data-options="required:'true',validType:'minLength[7]',missingMessage:'请填写账号！'" style="width:240px" /></td>
			</tr>
		</table>
	</form>
</div>